package xyj.sparrow.discovery.single.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author 江南小俊
 * @since 2021/6/18
 **/
@Configuration
@EnableConfigurationProperties(SingleConf.class)
@ConditionalOnProperty(prefix = "xyj.sparrow", name = "mode", havingValue = "single")
@ComponentScan(basePackages = "xyj.sparrow.discovery.single.bean")
public class AutoConfiguration {
}
